<h2>Why is this an issue?</h2>
<p>Numbers are infinite, but the types that hold them are not. Each numeric type has hard upper and lower bounds. Try to calculate numbers beyond
those bounds, and the result will be an <code>OverflowException</code>. When the compilation is configured to remove integer overflow checking, the
value will be silently wrapped around from the expected positive value to a negative one, or vice versa.</p>
<h3>Noncompliant code example</h3>
<pre>
Public Function Transform(Value As Integer) As Integer
    If Value &lt;= 0 Then Return Value
    Dim Number As Integer = Integer.MaxValue
    Return Number + Value       ' Noncompliant
End Function
</pre>
<h3>Compliant solution</h3>
<pre>
Public Function Transform(Value As Integer) As Long
    If Value &lt;= 0 Then Return Value
    Dim Number As Long = Integer.MaxValue
    Return Number + Value
End Function
</pre>
<h2>Resources</h2>
<h3>Standards</h3>
<ul>
  <li> STIG Viewer - <a href="https://stigviewer.com/stigs/application_security_and_development/2024-12-06/finding/V-222612">Application Security and
  Development: V-222612</a> - The application must not be vulnerable to overflow attacks. </li>
</ul>

